{extend name="common/base" }

{block name="content"}
<div class="am-g">
    <div class="am-u-sm-12 am-u-md-6">
        <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
                <a class="am-btn am-btn-default nd-refresh">
                    <span class="am-icon-refresh"></span> 刷新
                </a>
            </div>
        </div>
    </div>
</div>
<br/>

<div class="am-g">
    <div class="am-u-sm-12">
        <table class="am-table am-table-striped am-table-radius am-table-bordered nd-sorted-table">
            <thead>
                <tr>
                    <th>视频名称</th>
                    <th>章节</th>
                    <th>门店</th>
                    <th>设备</th>
                    <th>IP</th>
                    <th>类型</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {volist name="_list" id="vo"}
                <tr class="nd-sorted-item" data-id="{$vo.id}">
                    <td class="am-text-middle">{$vo.video_name}</td>
                    <td class="am-text-middle">{$vo.chapter}</td>
                    <td class="am-text-middle">{$vo.store_name}</td>
                    <td class="am-text-middle">{$vo.uuid}</td>
                    <td class="am-text-middle">{$vo.ip}</td>
                    <td class="am-text-middle">{$types[$vo['action']]}</td>
                    <td class="am-text-middle">
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                {$widget->row('button', ['title' => '删除', 'class' => 'am-text-danger
                                ajax-get ajax-confirm', 'icon' => 'am-icon-trash-o', 'url' => module_url('delete', ['id'
                                => $vo['id']])])}
                            </div>
                        </div>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>

        {if condition="!empty($_page)"}
			<div class="am-fl">共 {$_total} 条记录</div>
			<div class="am-fr">{$_page}</div>
		{/if}
    </div>
</div>
{/block}